package model

import "encoding/json"

type Profile struct {
	Name string //名字
	City string //城市
	Age string //年龄
	EB string //学历
	Marriage string //婚姻状态
	Height string //身高
	Revenue string //收入
}

func FromJonObj(v interface{}) (Profile, error)  {
	var profile Profile
	bytes,_ := json.Marshal(v)
	json.Unmarshal(bytes, &profile)

	return profile, nil
}